package br.com.jmmarca.xxx;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;
import android.widget.MediaController;
import android.widget.VideoView;
import br.com.jmmarca.controller.R;
import java.util.Timer;
import java.util.TimerTask;

public class MainPlayerActivity extends Activity {
    
    private VideoView mVideoView;
   
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
//        Log.w("teste", "1");
        mVideoView = (VideoView) findViewById(R.id.surface_view);
//        Log.w("teste", "2");
//        mVideoView.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.treino_corrida));
        mVideoView.requestFocus();
        mVideoView.start();
        MediaController mc = new MediaController(this);
        mc.setMediaPlayer(mVideoView);
        mVideoView.setMediaController(mc);
        
//        Tarefa tarefa = new Tarefa(mVideoView);
//        new Timer().schedule(tarefa, 0, 1000);
        
        
    }
}
